/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core.messages.client.inGame;
import core.messages.Msg_One;

/**
 *客户端发送，表示使用（牌或技能）的Msg的抽象类
 * @author Invince
 */
public class Msg_Cast extends Msg_One{//为了速度，只传id
/*----------Attributs-------------------*/
    /**
     * Skill的id
     */
    protected int idSkill;
    /**
     * 自己的id
     */
    protected int idSource;
    /**
     * 对象的Id
     */
    protected int[] idTargetPlayers;
    /**
     * 回应所搭上的牌的id，比如回应吕布的决斗，得用两张杀，其中一张应该摆在这里
     */
    protected int[] idTargetCards;

/*----------Public functions------------*/
/*----------Private functions-----------*/
/*----------Constructor-----------------*/
    public Msg_Cast(String sender, String receiver, int idSkill,int idSource, int[] idTargetPlayers,int[] idTargetCards) {
        super(sender, receiver);
        this.idSkill = idSkill;
        this.idSource=idSource;
        this.idTargetPlayers = idTargetPlayers;
        this.idTargetCards=idTargetCards;
    }

    public Msg_Cast(String sender, String receiver) {
        super(sender, receiver);
    }
    
/*----------Gets and sets---------------*/
    public int getIdSkill() {
        return idSkill;
    }

    public void setIdSkill(int idSkill) {
        this.idSkill = idSkill;
    }

    public int getIdSource() {
        return idSource;
    }

    public void setIdSource(int idSource) {
        this.idSource = idSource;
    }

    public int[] getIdTargetPlayers() {
        return idTargetPlayers;
    }

    public void setIdTargetPlayers(int[] idTargetPlayers) {
        this.idTargetPlayers = idTargetPlayers;
    }

    public int[] getIdTargetCards() {
        return idTargetCards;
    }

    public void setIdTargetCards(int[] idTargetCards) {
        this.idTargetCards = idTargetCards;
    }
   
}
